package com.example.javaeespringioc.controller;

import com.example.javaeespringioc.Service.UserService;
import com.example.javaeespringioc.demos.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Controller;

@Controller(value = "u1")
public class UserController {
    @Autowired
    private UserService userService1;

    @Autowired
    private UserService userService2;
    public void run(){
        userService1.run();
        userService2.run();
        System.out.println("UserController running...");
    }
}
